<!DOCTYPE html>

<html lang="zh">
<head>
    <title>首页</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="shortcut icon" href="./static/dist/img/avatar.png" type="image/x-icon"/>
    <link rel="stylesheet" href="./static/css/style.css"/>
</head>

<body>
<header>
{{template "./layout-menu.html"}}
</header>
<article>
    <section>
        <h2 style="text-align:center">本页测试数据库基本操作</h2>
        <div class="description">
            <form action="/user" method="POST">
                <input type="text" name="username" placeholder="用户名"><br>
                <input type="text" name="password" placeholder="密码"><br>
                <input type="submit" value="提交">
            </form>
        </div>
        <ul>
        {{range $index, $elem := .userList}}
            <li>{{$elem.Id}}:{{$elem.UserName}}</li>
        {{end}}
        </ul>
    </section>
</article>
<footer>
{{template "./layout-footer.html"}}
</footer>
</body>
</html>
